﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using MvcEngine.Core;

namespace MvcEngine.Mvc.Routing
{
    public class MvcEngineRoute : Route
    {
        //bstring baseUrl = string.Empty;

        public MvcEngineRoute(string url, IRouteHandler routeHandler)
            : base(url, routeHandler)
        {
            //baseUrl = url;
        }

        //public override RouteData GetRouteData(System.Web.HttpContextBase httpContext)
        //{
        //    this.Url = baseUrl;

        //    if (!string.IsNullOrEmpty(SiteContext.Current.Site.Alias))
        //        this.Url = SiteContext.Current.Site.Alias + "/" + this.Url;

        //    return base.GetRouteData(httpContext);
        //}

        //public override VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
        //{
        //    return base.GetVirtualPath(requestContext, values);
        //}

        //protected override bool ProcessConstraint(System.Web.HttpContextBase httpContext, object constraint, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
        //{
        //    return base.ProcessConstraint(httpContext, constraint, parameterName, values, routeDirection);
        //}
    }
}
